package com.wesley.responsibilityChain;

public class MainTest {

    public static void main(String[] args) {

        String msg = "<a>哈哈哈哈 ，这是敏感信息！！！！";

        System.out.println("原信息:" + msg);
        FilterChain chain = new FilterChain();
        chain.addFilters(new HTMLFilter()).addFilters(new MinganFilter());
        msg = chain.doFilter(msg);
        System.out.println("处理后信息：" + msg);

    }


}
